package com.surelution.projects.gard.domain

/**
 * 训更信息、地址信息、巡更时间点信息汇总，不再纪录当点巡更是否正常，只是在需要是计算是否正常
 * @author <a href="mailto:guangzong.syu@gmail.com">Guangzong</a>
 *
 */
class Patrol {

    static constraints = {
    }
	
	Poi poi
	PatrolClock clock
	PatrolRawRecord rawRecord
	
	public static List<Patrol> findAllByPatrolTime(Date from, Date to) {
		findAll("from Patrol p where p.rawRecordpatrolTime between :from and :to", [from:from, to:to])
	}
}
